#ifndef _UTILS_STR_H_
#define _UTILS_STR_H_
#ifdef __cplusplus
extern "C"
{
#endif

    extern void utils_str_trim(char *str, char trim);
    extern char *utils_str_to_upper(char *str);
    extern char *utils_str_to_lower(char *str);
    extern char utils_ascii_to_hex(char ascii);
    extern char utils_hex_to_ascii(char hex);
    extern int utils_str_to_hex(char *str, int str_length, char *hex);
    extern int utils_hex_to_str(char *hex, int hex_length, char *str);
    extern int utils_str_to_hex_big(char *str, int str_length, char *hex);
    extern int utils_hex_to_str_big(char *hex, int hex_length, char *str);
    extern int utils_str_to_hex_reverse(char *str, int str_length, char *hex);
    extern int utils_hex_to_str_reverse(char *hex, int hex_length, char *str);
    extern int utils_u16_to_ascii_big(unsigned short int u16, char *ascii);
    extern unsigned short int utils_ascii_to_u16_big(char *ascii);

#ifdef __cplusplus
}
#endif
#endif //_UTILS_STR_H_